<template>
  <div id="app">
    <el-form ref="add-member" :model="member" label-width="100px">
      <el-form-item label="姓名">
        {{member.name}}
      </el-form-item>

      <el-form-item label="密码">
        {{member.pwd}}
      </el-form-item>

      <el-form-item label="余额">
        {{member.money}}
      </el-form-item>

      <el-form-item label="电话">
        {{member.tel}}
      </el-form-item>

      <el-form-item label="性别">
        {{member.gender==1?'男':'女'}}
      </el-form-item>

      <el-form-item label="身份证号">
        {{member.cardId}}
      </el-form-item>

      <el-form-item label="描述">
        {{member.description}}
      </el-form-item>

    </el-form>
  </div>
</template>

<script>
  export default {
    data(){
      return {
        member:{},
        name:sessionStorage.getItem("username"),
      }
    },
    created(){
      this.axios.get("/member/selectByName/"+this.name).then((resp)=>{
        this.member=resp.data;
      })
    }
  }
</script>


<style scoped>

</style>
